package com.yswy.app.dto.domianVo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.yswy.domain.common.BasePojo;
import com.yswy.domain.entity.PackageManage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@ApiModel("热更新文件")
public class PackageManageVo{
    @ApiModelProperty("文件地址")
    private String fileUrl;
    @ApiModelProperty("版本号")
    private String versionCode;
    @ApiModelProperty("版本")
    private Integer version;
    @ApiModelProperty("是否是强制更新 0 热更新包   1 强更新包 ")
    private Integer isForce;
    @ApiModelProperty("渠道")
    private String channel;
    @ApiModelProperty("附加字段")
    private String  appendInformation ;

    public PackageManageVo(PackageManage packageManage) {
        this.fileUrl = packageManage.getFileUrl();
        this.versionCode = packageManage.getVersionCode();
        this.version = packageManage.getVersion();
        this.isForce = packageManage.getIsForce();
        this.channel = packageManage.getChannel();
        this.appendInformation = packageManage.getAppendInformation();
    }
}
